@extends('layout/default')

@section('content')
<div class="container ">
    <div clas="row ">
    <form>
    @foreach($entries as $entry)
        <div class="col-xs-12 img-thumbnail list-group-item" style="margin-top: 1em">
                <div class="row">
                    <a href="{{URL::to('train/'.$entry->TID.'/detail')}}">
                    <div class="col-xs-12" style="position: relative">
                        <img class="list-img" src="{{asset(isset($entry->TTumb)?$entry->TTumb:'images/default.jpg')}}">
                        <div class="row">
                            <div class="col-xs-12 list-img-label"><div>{{$entry->TTitle}}</div></div>
                        </div>
                    </div>

                    <div class="col-xs-12 list-content">
                        {{$entry->TContent}}
                    </div>
                    <div class="col-xs-12" style="color:505050">
                        查看全文
                    </div>
                    </a>
                </div>
            </div>
    @endforeach




    </form>
    </div>
     <div class="row">
               <div class="col-xs-12">
                    <?php echo $entries->appends(Input::all())->render();?>
               </div>
         </div>

</div>
@endsection
